//
//  PropertyrTableViewCell.m
//  YouWen
//
//  Created by liqiang－pc on 15/3/10.
//  Copyright (c) 2015年 刘永和. All rights reserved.
//

#import "PropertyrTableViewCell.h"

@implementation PropertyrTableViewCell
- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self createSubviews];
    }
    return self;
}

-(void)createSubviews
{
    self.contentView.backgroundColor = [NightModeHandle shareNightModeHandle].allViewColor;
    //列表图片
    self.headImageView = [[UIImageView alloc] initWithFrame:CGRectMake(10, 8, 120, 84)];
    self.headImageView.contentMode = UIViewContentModeScaleAspectFit;
    self.headImageView.backgroundColor = [NightModeHandle shareNightModeHandle].allViewColor;
    [self.contentView addSubview:self.headImageView];
    
    //标题
    self.titleLabel = [[UILabel alloc] initWithFrame:CGRectMake(135, 15, 230, 40)];
    self.titleLabel.font = [UIFont systemFontOfSize:[WordSizeHandle shareWordSizeHandle].lineTitleSize];
    self.titleLabel.lineBreakMode = NSLineBreakByWordWrapping;
    self.titleLabel.numberOfLines = 2;
    
    self.titleLabel.backgroundColor = [NightModeHandle shareNightModeHandle].allViewColor;
    [self.contentView addSubview:self.titleLabel];
    
    //日期
    self.dateLabel = [[UILabel alloc] initWithFrame:CGRectMake(230, 75, 40, 20)];
    self.dateLabel.font = [UIFont systemFontOfSize:[WordSizeHandle shareWordSizeHandle].lineOtherSize];
    self.dateLabel.backgroundColor = [NightModeHandle shareNightModeHandle].allViewColor;
    self.dateLabel.text = @"日期:";
    self.dateLabel.textColor = [UIColor lightGrayColor];
    [self.contentView addSubview:self.dateLabel];
    
    
    
    //时间
    self.timeLabel = [[UILabel alloc] initWithFrame:CGRectMake(270, 75, 100, 20)];
    self.timeLabel.font = [UIFont systemFontOfSize:[WordSizeHandle shareWordSizeHandle].lineOtherSize];
    self.timeLabel.backgroundColor = [NightModeHandle shareNightModeHandle].allViewColor;
    self.timeLabel.textColor = [UIColor lightGrayColor];
    [self.contentView addSubview:self.timeLabel];
    
    
    
    
    
}

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
